package itHeima.lesson6;

import java.util.Arrays;

public class Arr {
    public static void main(String[] args) {


        int[] ages = new int[]{12, 13, 13, 4, 16, 32, 12};



//        System.out.println(ages[1]);
//        ages[0] = 100;
        System.out.println(Arrays.stream(ages).max());
        System.out.println(ages.length);

    }

}
